<?php include_once './application/views/sys_admin/common/header.php';  ?>
<!-- admin_main -->
<div class="admin_main">
	<!-- Admin_top end -->
	<?php include_once './application/views/sys_admin/common/system_left.php';  ?>
	<!-- Admin_Left End -->
	<div class="admin_right">
	<div class="admin_right_title"><strong>系统管理</strong> >> 数据库</div>
		<div class="admin_right_con">
			<div class="exclebackground">				
				<a href="/sys_admin/backup_db" class="exclebtn">数据备份</a>
			</div>
			
			<table border="0" cellspacing="1" cellpadding="0" bgcolor="#cfe6f4">
			  <tr style="color:#0068b7;">
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>序号</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>字段名称</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>引擎</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>编码</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>记录数</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>数据大小</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>最后更新时间</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>操作</strong></td>
			  </tr>
			  <?php $i =0;foreach($table_list as $key=>$table){ $i++;?>
			  <tr id="row_<?php echo $table['id'];?>">
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $i;?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $table['Name'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $table['Engine'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $table['Collation'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $table['Rows'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $table['Data_length'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $table['Update_time'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><a href="/sys_admin/backup/backup_desc_db/<?php echo $table['Name'];?>">查看表结构</a></td>
			  </tr>
			  <?php }?>
				<tr style="color:#0068b7;">
					<td height="35" colspan="8" align="center" valign="middle" bgcolor="#F1F1F1"><strong></strong></td>
					
				  </tr>
			</table>
			</div>
	</div>
<!-- Admin_Right End -->
</div>
<!-- admin_main end -->

</body>
</html>
